 // 构造请求量、错误率和响应时间折线图信息
 export const buildChartData = (data, name, unit, showTitle = false) => {
  const chartOptions = cloneDeep(basiclineOption);
  if (data.length) {
    chartOptions.xAxis[0].data = map(data, 'time');
    chartOptions.yAxis[0].axisLabel.formatter = (v) => formatUnit(v, unit);
    chartOptions.series.push(buildLineSeriesData(name, map(data, 'value')));
    chartOptions.tooltip.formatter = (params) => formatChartTooltip(params, unit);
    if (showTitle) {
      chartOptions.title.show = true;
      chartOptions.title.text = name;
    }
  }
  return chartOptions;
}
